#【练习】斐波那契 for
n=int(input("请输入n项："))
if n==1:
    print("[1]")
if n==2:
    print("[1,1]")
if n>=3:
    i=1
    j=1
    list=[i,j]
    for m in range(1,n):
        sum=i+j
        list.append(sum)
        i = j
        j = sum
        if len(list)==n:
            break
    print(list)



